import QtQuick
import QtQuick.Controls
import QtQuick.Layouts

Item {
    id: qrCodeListBack_ListWindow
    width: 1760
    height: 935

    property real fontSize: Cpp_Language.CurrentLanguage === 1 ? 30 : Cpp_Language.CurrentLanguage === 2 ? 20 : Cpp_Language.CurrentLanguage === 3 ? 20 : 30

    property string orderNumber: Cpp_PLC.Current_List_Order

    A_NumberKeyboard{
        id: qrCodeProcessListKeyboard
        isDirectOverwrite: false
    }

    Component.onCompleted: {
        Cpp_PLC.read_Material_List_QR_Code_List_Process_Hold();
        Cpp_PLC.write_into_PLC_16_Hold(48,"6")
    }

    Row {
        anchors.top: parent.top
        anchors.left: parent.left
        height: 50

        // 12个标题项（宽度总和=1500，精确计算）
        TitleItem { title: qsTr("序号"); itemWidth: 150 }       // 1
        TitleItem { title: qsTr("左角度"); itemWidth: 250 }     // 2
        TitleItem { title: qsTr("右角度"); itemWidth: 250 }     // 3
        TitleItem { title: qsTr("切割长度"); itemWidth: 250 }   // 4
        TitleItem { title: qsTr("切割数量"); itemWidth: 300 }   // 5
        TitleItem { title: qsTr("已加工数量"); itemWidth: 300
                MouseArea{
                    anchors.fill: parent
                    onPressed: {
                        Cpp_PLC.write_into_PLC_Coils(142,true)
                    }
                    onReleased: {
                        Cpp_PLC.write_into_PLC_Coils(142,false)
                        Cpp_PLC.read_Material_List_QR_Code_List_Process_Hold();
                    }
                }
        } // 6
    }

    // 标题项组件（统一样式与布局）
    component TitleItem: Rectangle {
        property string title: ""       // 标题文本
        property real itemWidth: 100    // 单项宽度

        width: itemWidth
        height: parent.height  // 高度与容器一致（80）
        color: "#eeeeee"       // 标题项背景（略深于总背景）
        border.width: 0.5
        border.color: "#ddd"


        // 标题文字（自动适应宽度，防止溢出）
        Text {
            anchors.centerIn: parent
            text: title
            font.pixelSize: fontSize  // 适中字号，平衡显示与空间
            font.bold: true
            color: "#333"
            elide: Text.ElideRight  // 极端情况文字过长时省略尾部
            maximumLineCount: 1    // 强制单行显示
        }
    }        

    Column{
        anchors.top: parent.top
        anchors.topMargin: 50
        anchors.left: parent.left
        // spacing: 1

        Row{        // 1
            Rectangle{
                width: 150
                height: 44
                border.width: 1
                color: orderNumber === order_1.text ? "green" : "white"

                Text{
                    id: order_1
                    anchors.centerIn: parent
                    font.pixelSize: 30
                    text: "1"
                }

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        Cpp_PLC.write_into_PLC_16_Hold(77,order_1.text)
                        Cpp_PLC.write_into_PLC_Coils(172,false)
                        if(Cpp_PLC.M_394)
                        {
                            Cpp_PLC.write_into_PLC_Coils(140,true)
                            Cpp_PLC.write_into_PLC_Coils(141,true)
                        }
                        else
                        {
                            Cpp_PLC.write_into_PLC_Coils(140,true)
                            Cpp_PLC.write_into_PLC_Coils(141,true)

                            Cpp_PLC.write_into_PLC_Coils(140,false)
                            Cpp_PLC.write_into_PLC_Coils(141,false)
                        }
                    }
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_Left_1 === "0" ? "45" : "90"
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1640,value)
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_Right_1 === "0" ? "45" : "90"
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1641,value)
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_CutLength_1
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_32_Hold(1600,value)
                }
            }
            A_NumberInput{
                inputWidth: 300
                inputHeight: 44
                text: Cpp_PLC.QR_List_CutCount_1
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1680,value)
                }
            }
            A_NumberInput{
                inputWidth: 300
                inputHeight: 44
                text: Cpp_PLC.QR_List_WorkedCount_1
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1700,value)
                }
            }

        }
        Row{        // 2
            Rectangle{
                width: 150
                height: 44
                border.width: 1
                color: orderNumber === order_2.text ? "green" : "white"

                Text{
                    id: order_2
                    anchors.centerIn: parent
                    font.pixelSize: 30
                    text: "2"
                }

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        Cpp_PLC.write_into_PLC_16_Hold(77,order_2.text)
                        Cpp_PLC.write_into_PLC_Coils(172,false)
                        if(Cpp_PLC.M_394)
                        {
                            Cpp_PLC.write_into_PLC_Coils(140,true)
                            Cpp_PLC.write_into_PLC_Coils(141,true)
                        }
                        else
                        {
                            Cpp_PLC.write_into_PLC_Coils(140,true)
                            Cpp_PLC.write_into_PLC_Coils(141,true)

                            Cpp_PLC.write_into_PLC_Coils(140,false)
                            Cpp_PLC.write_into_PLC_Coils(141,false)
                        }
                    }
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_Left_2 === "0" ? "45" : "90"
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1642,value)
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_Right_2 === "0" ? "45" : "90"
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1643,value)
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_CutLength_2
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_32_Hold(1602,value)
                }
            }
            A_NumberInput{
                inputWidth: 300
                inputHeight: 44
                text: Cpp_PLC.QR_List_CutCount_2
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1681,value)
                }
            }
            A_NumberInput{
                inputWidth: 300
                inputHeight: 44
                text: Cpp_PLC.QR_List_WorkedCount_2
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1701,value)
                }
            }
        }
        Row{        // 3
            Rectangle{
                width: 150
                height: 44
                border.width: 1
                color: orderNumber === order_3.text ? "green" : "white"

                Text{
                    id: order_3
                    anchors.centerIn: parent
                    font.pixelSize: 30
                    text: "3"
                }

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        Cpp_PLC.write_into_PLC_16_Hold(77,order_3.text)
                        Cpp_PLC.write_into_PLC_Coils(172,false)
                        if(Cpp_PLC.M_394)
                        {
                            Cpp_PLC.write_into_PLC_Coils(140,true)
                            Cpp_PLC.write_into_PLC_Coils(141,true)
                        }
                        else
                        {
                            Cpp_PLC.write_into_PLC_Coils(140,true)
                            Cpp_PLC.write_into_PLC_Coils(141,true)

                            Cpp_PLC.write_into_PLC_Coils(140,false)
                            Cpp_PLC.write_into_PLC_Coils(141,false)
                        }
                    }
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_Left_3 === "0" ? "45" : "90"
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1644,value)
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_Right_3 === "0" ? "45" : "90"
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1645,value)
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_CutLength_3
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_32_Hold(1604,value)
                }
            }
            A_NumberInput{
                inputWidth: 300
                inputHeight: 44
                text: Cpp_PLC.QR_List_CutCount_3
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1682,value)
                }
            }
            A_NumberInput{
                inputWidth: 300
                inputHeight: 44
                text: Cpp_PLC.QR_List_WorkedCount_3
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1702,value)
                }
            }
        }
        Row{        // 4
            Rectangle{
                width: 150
                height: 44
                border.width: 1
                color: orderNumber === order_4.text ? "green" : "white"

                Text{
                    id: order_4
                    anchors.centerIn: parent
                    font.pixelSize: 30
                    text: "4"
                }

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        Cpp_PLC.write_into_PLC_16_Hold(77,order_4.text)
                        Cpp_PLC.write_into_PLC_Coils(172,false)
                        if(Cpp_PLC.M_394)
                        {
                            Cpp_PLC.write_into_PLC_Coils(140,true)
                            Cpp_PLC.write_into_PLC_Coils(141,true)
                        }
                        else
                        {
                            Cpp_PLC.write_into_PLC_Coils(140,true)
                            Cpp_PLC.write_into_PLC_Coils(141,true)

                            Cpp_PLC.write_into_PLC_Coils(140,false)
                            Cpp_PLC.write_into_PLC_Coils(141,false)
                        }
                    }
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_Left_4 === "0" ? "45" : "90"
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1646,value)
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_Right_4 === "0" ? "45" : "90"
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1647,value)
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_CutLength_4
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_32_Hold(1606,value)
                }
            }
            A_NumberInput{
                inputWidth: 300
                inputHeight: 44
                text: Cpp_PLC.QR_List_CutCount_4
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1683,value)
                }
            }
            A_NumberInput{
                inputWidth: 300
                inputHeight: 44
                text: Cpp_PLC.QR_List_WorkedCount_4
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1703,value)
                }
            }
        }
        Row{        // 5
            Rectangle{
                width: 150
                height: 44
                border.width: 1
                color: orderNumber === order_5.text ? "green" : "white"

                Text{
                    id: order_5
                    anchors.centerIn: parent
                    font.pixelSize: 30
                    text: "5"
                }

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        Cpp_PLC.write_into_PLC_16_Hold(77,order_5.text)
                        Cpp_PLC.write_into_PLC_Coils(172,false)
                        if(Cpp_PLC.M_394)
                        {
                            Cpp_PLC.write_into_PLC_Coils(140,true)
                            Cpp_PLC.write_into_PLC_Coils(141,true)
                        }
                        else
                        {
                            Cpp_PLC.write_into_PLC_Coils(140,true)
                            Cpp_PLC.write_into_PLC_Coils(141,true)

                            Cpp_PLC.write_into_PLC_Coils(140,false)
                            Cpp_PLC.write_into_PLC_Coils(141,false)
                        }
                    }
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_Left_5 === "0" ? "45" : "90"
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1648,value)
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_Right_5 === "0" ? "45" : "90"
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1649,value)
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_CutLength_5
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_32_Hold(1608,value)
                }
            }
            A_NumberInput{
                inputWidth: 300
                inputHeight: 44
                text: Cpp_PLC.QR_List_CutCount_5
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1684,value)
                }
            }
            A_NumberInput{
                inputWidth: 300
                inputHeight: 44
                text: Cpp_PLC.QR_List_WorkedCount_5
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1704,value)
                }
            }
        }
        Row{        // 6
            Rectangle{
                width: 150
                height: 44
                border.width: 1
                color: orderNumber === order_6.text ? "green" : "white"

                Text{
                    id: order_6
                    anchors.centerIn: parent
                    font.pixelSize: 30
                    text: "6"
                }

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        Cpp_PLC.write_into_PLC_16_Hold(77,order_6.text)
                        Cpp_PLC.write_into_PLC_Coils(172,false)
                        if(Cpp_PLC.M_394)
                        {
                            Cpp_PLC.write_into_PLC_Coils(140,true)
                            Cpp_PLC.write_into_PLC_Coils(141,true)
                        }
                        else
                        {
                            Cpp_PLC.write_into_PLC_Coils(140,true)
                            Cpp_PLC.write_into_PLC_Coils(141,true)

                            Cpp_PLC.write_into_PLC_Coils(140,false)
                            Cpp_PLC.write_into_PLC_Coils(141,false)
                        }
                    }
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_Left_6 === "0" ? "45" : "90"
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1650,value)
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_Right_6 === "0" ? "45" : "90"
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1651,value)
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_CutLength_6
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_32_Hold(1610,value)
                }
            }
            A_NumberInput{
                inputWidth: 300
                inputHeight: 44
                text: Cpp_PLC.QR_List_CutCount_6
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1685,value)
                }
            }
            A_NumberInput{
                inputWidth: 300
                inputHeight: 44
                text: Cpp_PLC.QR_List_WorkedCount_6
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1705,value)
                }
            }
        }
        Row{        // 7
            Rectangle{
                width: 150
                height: 44
                border.width: 1
                color: orderNumber === order_7.text ? "green" : "white"

                Text{
                    id: order_7
                    anchors.centerIn: parent
                    font.pixelSize: 30
                    text: "7"
                }

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        Cpp_PLC.write_into_PLC_16_Hold(77,order_7.text)
                        Cpp_PLC.write_into_PLC_Coils(172,false)
                        if(Cpp_PLC.M_394)
                        {
                            Cpp_PLC.write_into_PLC_Coils(140,true)
                            Cpp_PLC.write_into_PLC_Coils(141,true)
                        }
                        else
                        {
                            Cpp_PLC.write_into_PLC_Coils(140,true)
                            Cpp_PLC.write_into_PLC_Coils(141,true)

                            Cpp_PLC.write_into_PLC_Coils(140,false)
                            Cpp_PLC.write_into_PLC_Coils(141,false)
                        }
                    }
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_Left_7 === "0" ? "45" : "90"
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1652,value)
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_Right_7 === "0" ? "45" : "90"
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1653,value)
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_CutLength_7
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_32_Hold(1612,value)
                }
            }
            A_NumberInput{
                inputWidth: 300
                inputHeight: 44
                text: Cpp_PLC.QR_List_CutCount_7
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1686,value)
                }
            }
            A_NumberInput{
                inputWidth: 300
                inputHeight: 44
                text: Cpp_PLC.QR_List_WorkedCount_7
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1706,value)
                }
            }
        }
        Row{        // 8
            Rectangle{
                width: 150
                height: 44
                border.width: 1
                color: orderNumber === order_8.text ? "green" : "white"

                Text{
                    id: order_8
                    anchors.centerIn: parent
                    font.pixelSize: 30
                    text: "8"
                }

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        Cpp_PLC.write_into_PLC_16_Hold(77,order_8.text)
                        Cpp_PLC.write_into_PLC_Coils(172,false)
                        if(Cpp_PLC.M_394)
                        {
                            Cpp_PLC.write_into_PLC_Coils(140,true)
                            Cpp_PLC.write_into_PLC_Coils(141,true)
                        }
                        else
                        {
                            Cpp_PLC.write_into_PLC_Coils(140,true)
                            Cpp_PLC.write_into_PLC_Coils(141,true)

                            Cpp_PLC.write_into_PLC_Coils(140,false)
                            Cpp_PLC.write_into_PLC_Coils(141,false)
                        }
                    }
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_Left_8 === "0" ? "45" : "90"
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1654,value)
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_Right_8 === "0" ? "45" : "90"
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1655,value)
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_CutLength_8
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_32_Hold(1614,value)
                }
            }
            A_NumberInput{
                inputWidth: 300
                inputHeight: 44
                text: Cpp_PLC.QR_List_CutCount_8
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1687,value)
                }
            }
            A_NumberInput{
                inputWidth: 300
                inputHeight: 44
                text: Cpp_PLC.QR_List_WorkedCount_8
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1707,value)
                }
            }
        }
        Row{        // 9
            Rectangle{
                width: 150
                height: 44
                border.width: 1
                color: orderNumber === order_9.text ? "green" : "white"

                Text{
                    id: order_9
                    anchors.centerIn: parent
                    font.pixelSize: 30
                    text: "9"
                }

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        Cpp_PLC.write_into_PLC_16_Hold(77,order_9.text)
                        Cpp_PLC.write_into_PLC_Coils(172,false)
                        if(Cpp_PLC.M_394)
                        {
                            Cpp_PLC.write_into_PLC_Coils(140,true)
                            Cpp_PLC.write_into_PLC_Coils(141,true)
                        }
                        else
                        {
                            Cpp_PLC.write_into_PLC_Coils(140,true)
                            Cpp_PLC.write_into_PLC_Coils(141,true)

                            Cpp_PLC.write_into_PLC_Coils(140,false)
                            Cpp_PLC.write_into_PLC_Coils(141,false)
                        }
                    }
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_Left_9 === "0" ? "45" : "90"
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1656,value)
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_Right_9 === "0" ? "45" : "90"
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1657,value)
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_CutLength_9
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_32_Hold(1616,value)
                }
            }
            A_NumberInput{
                inputWidth: 300
                inputHeight: 44
                text: Cpp_PLC.QR_List_CutCount_9
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1688,value)
                }
            }
            A_NumberInput{
                inputWidth: 300
                inputHeight: 44
                text: Cpp_PLC.QR_List_WorkedCount_9
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1708,value)
                }
            }
        }
        Row{        // 1
            Rectangle{
                width: 150
                height: 44
                border.width: 1
                color: orderNumber === order_10.text ? "green" : "white"

                Text{
                    id: order_10
                    anchors.centerIn: parent
                    font.pixelSize: 30
                    text: "10"
                }

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        Cpp_PLC.write_into_PLC_16_Hold(77,order_10.text)
                        Cpp_PLC.write_into_PLC_Coils(172,false)
                        if(Cpp_PLC.M_394)
                        {
                            Cpp_PLC.write_into_PLC_Coils(140,true)
                            Cpp_PLC.write_into_PLC_Coils(141,true)
                        }
                        else
                        {
                            Cpp_PLC.write_into_PLC_Coils(140,true)
                            Cpp_PLC.write_into_PLC_Coils(141,true)

                            Cpp_PLC.write_into_PLC_Coils(140,false)
                            Cpp_PLC.write_into_PLC_Coils(141,false)
                        }
                    }
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_Left_10 === "0" ? "45" : "90"
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1658,value)
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_Right_10 === "0" ? "45" : "90"
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1659,value)
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_CutLength_10
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_32_Hold(1618,value)
                }
            }
            A_NumberInput{
                inputWidth: 300
                inputHeight: 44
                text: Cpp_PLC.QR_List_CutCount_10
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1689,value)
                }
            }
            A_NumberInput{
                inputWidth: 300
                inputHeight: 44
                text: Cpp_PLC.QR_List_WorkedCount_10
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1709,value)
                }
            }
        }
        Row{        // 1
            Rectangle{
                width: 150
                height: 44
                border.width: 1
                color: orderNumber === order_11.text ? "green" : "white"

                Text{
                    id: order_11
                    anchors.centerIn: parent
                    font.pixelSize: 30
                    text: "11"
                }

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        Cpp_PLC.write_into_PLC_16_Hold(77,order_11.text)
                        Cpp_PLC.write_into_PLC_Coils(172,false)
                        if(Cpp_PLC.M_394)
                        {
                            Cpp_PLC.write_into_PLC_Coils(140,true)
                            Cpp_PLC.write_into_PLC_Coils(141,true)
                        }
                        else
                        {
                            Cpp_PLC.write_into_PLC_Coils(140,true)
                            Cpp_PLC.write_into_PLC_Coils(141,true)

                            Cpp_PLC.write_into_PLC_Coils(140,false)
                            Cpp_PLC.write_into_PLC_Coils(141,false)
                        }
                    }
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_Left_11 === "0" ? "45" : "90"
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1660,value)
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_Right_11 === "0" ? "45" : "90"
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1661,value)
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_CutLength_11
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_32_Hold(1620,value)
                }
            }
            A_NumberInput{
                inputWidth: 300
                inputHeight: 44
                text: Cpp_PLC.QR_List_CutCount_11
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1690,value)
                }
            }
            A_NumberInput{
                inputWidth: 300
                inputHeight: 44
                text: Cpp_PLC.QR_List_WorkedCount_11
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1710,value)
                }
            }
        }
        Row{        // 1
            Rectangle{
                width: 150
                height: 44
                border.width: 1
                color: orderNumber === order_12.text ? "green" : "white"

                Text{
                    id: order_12
                    anchors.centerIn: parent
                    font.pixelSize: 30
                    text: "12"
                }

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        Cpp_PLC.write_into_PLC_16_Hold(77,order_12.text)
                        Cpp_PLC.write_into_PLC_Coils(172,false)
                        if(Cpp_PLC.M_394)
                        {
                            Cpp_PLC.write_into_PLC_Coils(140,true)
                            Cpp_PLC.write_into_PLC_Coils(141,true)
                        }
                        else
                        {
                            Cpp_PLC.write_into_PLC_Coils(140,true)
                            Cpp_PLC.write_into_PLC_Coils(141,true)

                            Cpp_PLC.write_into_PLC_Coils(140,false)
                            Cpp_PLC.write_into_PLC_Coils(141,false)
                        }
                    }
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_Left_12 === "0" ? "45" : "90"
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1662,value)
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_Right_12 === "0" ? "45" : "90"
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1663,value)
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_CutLength_12
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_32_Hold(1622,value)
                }
            }
            A_NumberInput{
                inputWidth: 300
                inputHeight: 44
                text: Cpp_PLC.QR_List_CutCount_12
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1691,value)
                }
            }
            A_NumberInput{
                inputWidth: 300
                inputHeight: 44
                text: Cpp_PLC.QR_List_WorkedCount_12
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1711,value)
                }
            }
        }
        Row{        // 1
            Rectangle{
                width: 150
                height: 44
                border.width: 1
                color: orderNumber === order_13.text ? "green" : "white"

                Text{
                    id: order_13
                    anchors.centerIn: parent
                    font.pixelSize: 30
                    text: "13"
                }

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        Cpp_PLC.write_into_PLC_16_Hold(77,order_13.text)
                        Cpp_PLC.write_into_PLC_Coils(172,false)
                        if(Cpp_PLC.M_394)
                        {
                            Cpp_PLC.write_into_PLC_Coils(140,true)
                            Cpp_PLC.write_into_PLC_Coils(141,true)
                        }
                        else
                        {
                            Cpp_PLC.write_into_PLC_Coils(140,true)
                            Cpp_PLC.write_into_PLC_Coils(141,true)

                            Cpp_PLC.write_into_PLC_Coils(140,false)
                            Cpp_PLC.write_into_PLC_Coils(141,false)
                        }
                    }
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_Left_13 === "0" ? "45" : "90"
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1664,value)
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_Right_13 === "0" ? "45" : "90"
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1665,value)
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_CutLength_13
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_32_Hold(1624,value)
                }
            }
            A_NumberInput{
                inputWidth: 300
                inputHeight: 44
                text: Cpp_PLC.QR_List_CutCount_13
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1692,value)
                }
            }
            A_NumberInput{
                inputWidth: 300
                inputHeight: 44
                text: Cpp_PLC.QR_List_WorkedCount_13
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1712,value)
                }
            }
        }
        Row{        // 1
            Rectangle{
                width: 150
                height: 44
                border.width: 1
                color: orderNumber === order_14.text ? "green" : "white"

                Text{
                    id: order_14
                    anchors.centerIn: parent
                    font.pixelSize: 30
                    text: "14"
                }

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        Cpp_PLC.write_into_PLC_16_Hold(77,order_14.text)
                        Cpp_PLC.write_into_PLC_Coils(172,false)
                        if(Cpp_PLC.M_394)
                        {
                            Cpp_PLC.write_into_PLC_Coils(140,true)
                            Cpp_PLC.write_into_PLC_Coils(141,true)
                        }
                        else
                        {
                            Cpp_PLC.write_into_PLC_Coils(140,true)
                            Cpp_PLC.write_into_PLC_Coils(141,true)

                            Cpp_PLC.write_into_PLC_Coils(140,false)
                            Cpp_PLC.write_into_PLC_Coils(141,false)
                        }
                    }
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_Left_14 === "0" ? "45" : "90"
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1666,value)
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_Right_14 === "0" ? "45" : "90"
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1667,value)
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_CutLength_14
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_32_Hold(1626,value)
                }
            }
            A_NumberInput{
                inputWidth: 300
                inputHeight: 44
                text: Cpp_PLC.QR_List_CutCount_14
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1693,value)
                }
            }
            A_NumberInput{
                inputWidth: 300
                inputHeight: 44
                text: Cpp_PLC.QR_List_WorkedCount_14
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1713,value)
                }
            }
        }
        Row{        // 1
            Rectangle{
                width: 150
                height: 44
                border.width: 1
                color: orderNumber === order_15.text ? "green" : "white"

                Text{
                    id: order_15
                    anchors.centerIn: parent
                    font.pixelSize: 30
                    text: "15"
                }

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        Cpp_PLC.write_into_PLC_16_Hold(77,order_15.text)
                        Cpp_PLC.write_into_PLC_Coils(172,false)
                        if(Cpp_PLC.M_394)
                        {
                            Cpp_PLC.write_into_PLC_Coils(140,true)
                            Cpp_PLC.write_into_PLC_Coils(141,true)
                        }
                        else
                        {
                            Cpp_PLC.write_into_PLC_Coils(140,true)
                            Cpp_PLC.write_into_PLC_Coils(141,true)

                            Cpp_PLC.write_into_PLC_Coils(140,false)
                            Cpp_PLC.write_into_PLC_Coils(141,false)
                        }
                    }
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_Left_15 === "0" ? "45" : "90"
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1668,value)
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_Right_15 === "0" ? "45" : "90"
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1669,value)
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_CutLength_15
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_32_Hold(1628,value)
                }
            }
            A_NumberInput{
                inputWidth: 300
                inputHeight: 44
                text: Cpp_PLC.QR_List_CutCount_15
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1694,value)
                }
            }
            A_NumberInput{
                inputWidth: 300
                inputHeight: 44
                text: Cpp_PLC.QR_List_WorkedCount_15
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1714,value)
                }
            }
        }
        Row{        // 1
            Rectangle{
                width: 150
                height: 44
                border.width: 1
                color: orderNumber === order_16.text ? "green" : "white"

                Text{
                    id: order_16
                    anchors.centerIn: parent
                    font.pixelSize: 30
                    text: "16"
                }

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        Cpp_PLC.write_into_PLC_16_Hold(77,order_16.text)
                        Cpp_PLC.write_into_PLC_Coils(172,false)
                        if(Cpp_PLC.M_394)
                        {
                            Cpp_PLC.write_into_PLC_Coils(140,true)
                            Cpp_PLC.write_into_PLC_Coils(141,true)
                        }
                        else
                        {
                            Cpp_PLC.write_into_PLC_Coils(140,true)
                            Cpp_PLC.write_into_PLC_Coils(141,true)

                            Cpp_PLC.write_into_PLC_Coils(140,false)
                            Cpp_PLC.write_into_PLC_Coils(141,false)
                        }
                    }
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_Left_16 === "0" ? "45" : "90"
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1670,value)
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_Right_16 === "0" ? "45" : "90"
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1671,value)
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_CutLength_16
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_32_Hold(1630,value)
                }
            }
            A_NumberInput{
                inputWidth: 300
                inputHeight: 44
                text: Cpp_PLC.QR_List_CutCount_16
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1695,value)
                }
            }
            A_NumberInput{
                inputWidth: 300
                inputHeight: 44
                text: Cpp_PLC.QR_List_WorkedCount_16
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1715,value)
                }
            }
        }
        Row{        // 1
            Rectangle{
                width: 150
                height: 44
                border.width: 1
                color: orderNumber === order_17.text ? "green" : "white"

                Text{
                    id: order_17
                    anchors.centerIn: parent
                    font.pixelSize: 30
                    text: "17"
                }

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        Cpp_PLC.write_into_PLC_16_Hold(77,order_17.text)
                        Cpp_PLC.write_into_PLC_Coils(172,false)
                        if(Cpp_PLC.M_394)
                        {
                            Cpp_PLC.write_into_PLC_Coils(140,true)
                            Cpp_PLC.write_into_PLC_Coils(141,true)
                        }
                        else
                        {
                            Cpp_PLC.write_into_PLC_Coils(140,true)
                            Cpp_PLC.write_into_PLC_Coils(141,true)

                            Cpp_PLC.write_into_PLC_Coils(140,false)
                            Cpp_PLC.write_into_PLC_Coils(141,false)
                        }
                    }
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_Left_17 === "0" ? "45" : "90"
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1672,value)
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_Right_17 === "0" ? "45" : "90"
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1673,value)
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_CutLength_17
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_32_Hold(1632,value)
                }
            }
            A_NumberInput{
                inputWidth: 300
                inputHeight: 44
                text: Cpp_PLC.QR_List_CutCount_17
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1696,value)
                }
            }
            A_NumberInput{
                inputWidth: 300
                inputHeight: 44
                text: Cpp_PLC.QR_List_WorkedCount_17
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1716,value)
                }
            }
        }
        Row{        // 1
            Rectangle{
                width: 150
                height: 44
                border.width: 1
                color: orderNumber === order_18.text ? "green" : "white"

                Text{
                    id: order_18
                    anchors.centerIn: parent
                    font.pixelSize: 30
                    text: "18"
                }

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        Cpp_PLC.write_into_PLC_16_Hold(77,order_18.text)
                        Cpp_PLC.write_into_PLC_Coils(172,false)
                        if(Cpp_PLC.M_394)
                        {
                            Cpp_PLC.write_into_PLC_Coils(140,true)
                            Cpp_PLC.write_into_PLC_Coils(141,true)
                        }
                        else
                        {
                            Cpp_PLC.write_into_PLC_Coils(140,true)
                            Cpp_PLC.write_into_PLC_Coils(141,true)

                            Cpp_PLC.write_into_PLC_Coils(140,false)
                            Cpp_PLC.write_into_PLC_Coils(141,false)
                        }
                    }
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_Left_18 === "0" ? "45" : "90"
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1674,value)
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_Right_18 === "0" ? "45" : "90"
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1675,value)
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_CutLength_18
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_32_Hold(1634,value)
                }
            }
            A_NumberInput{
                inputWidth: 300
                inputHeight: 44
                text: Cpp_PLC.QR_List_CutCount_18
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1697,value)
                }
            }
            A_NumberInput{
                inputWidth: 300
                inputHeight: 44
                text: Cpp_PLC.QR_List_WorkedCount_18
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1717,value)
                }
            }
        }
        Row{        // 1
            Rectangle{
                width: 150
                height: 44
                border.width: 1
                color: orderNumber === order_19.text ? "green" : "white"

                Text{
                    id: order_19
                    anchors.centerIn: parent
                    font.pixelSize: 30
                    text: "19"
                }

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        Cpp_PLC.write_into_PLC_16_Hold(77,order_19.text)
                        Cpp_PLC.write_into_PLC_Coils(172,false)
                        if(Cpp_PLC.M_394)
                        {
                            Cpp_PLC.write_into_PLC_Coils(140,true)
                            Cpp_PLC.write_into_PLC_Coils(141,true)
                        }
                        else
                        {
                            Cpp_PLC.write_into_PLC_Coils(140,true)
                            Cpp_PLC.write_into_PLC_Coils(141,true)

                            Cpp_PLC.write_into_PLC_Coils(140,false)
                            Cpp_PLC.write_into_PLC_Coils(141,false)
                        }
                    }
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_Left_19 === "0" ? "45" : "90"
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1676,value)
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_Right_19 === "0" ? "45" : "90"
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1677,value)
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_CutLength_19
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_32_Hold(1636,value)
                }
            }
            A_NumberInput{
                inputWidth: 300
                inputHeight: 44
                text: Cpp_PLC.QR_List_CutCount_19
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1698,value)
                }
            }
            A_NumberInput{
                inputWidth: 300
                inputHeight: 44
                text: Cpp_PLC.QR_List_WorkedCount_19
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1718,value)
                }
            }
        }
        Row{        // 1
            Rectangle{
                width: 150
                height: 44
                border.width: 1
                color: orderNumber === order_20.text ? "green" : "white"

                Text{
                    id: order_20
                    anchors.centerIn: parent
                    font.pixelSize: 30
                    text: "20"
                }

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        Cpp_PLC.write_into_PLC_16_Hold(77,order_20.text)
                        Cpp_PLC.write_into_PLC_Coils(172,false)
                        if(Cpp_PLC.M_394)
                        {
                            Cpp_PLC.write_into_PLC_Coils(140,true)
                            Cpp_PLC.write_into_PLC_Coils(141,true)
                        }
                        else
                        {
                            Cpp_PLC.write_into_PLC_Coils(140,true)
                            Cpp_PLC.write_into_PLC_Coils(141,true)

                            Cpp_PLC.write_into_PLC_Coils(140,false)
                            Cpp_PLC.write_into_PLC_Coils(141,false)
                        }
                    }
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_Left_20 === "0" ? "45" : "90"
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1678,value)
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_Right_20 === "0" ? "45" : "90"
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1679,value)
                }
            }
            A_NumberInput{
                inputWidth: 250
                inputHeight: 44
                text: Cpp_PLC.QR_List_CutLength_20
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_32_Hold(1638,value)
                }
            }
            A_NumberInput{
                inputWidth: 300
                inputHeight: 44
                text: Cpp_PLC.QR_List_CutCount_20
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1699,value)
                }
            }
            A_NumberInput{
                inputWidth: 300
                inputHeight: 44
                text: Cpp_PLC.QR_List_WorkedCount_20
                keyboard: qrCodeProcessListKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_into_PLC_16_Hold(1719,value)
                }
            }
        }

    }

    A_ComboBox{
        anchors.top: parent.top
        anchors.topMargin: 50
        anchors.right: parent.right
        comboBoxWidth: 240
        comboBoxHeight: 50

        currentIndex: Cpp_Config.Current_QR_Code-1


        model: [qsTr("长风离线"),
            qsTr("速制离线"),
            qsTr("画门窗离线"),
            qsTr("创品离线"),
            qsTr("新格尔离线")]

        onComboBoxActivated: {
            console.log(currentText)
            Cpp_PLC.Current_QR_Type = currentIndex + 1
            Cpp_Scanner.Current_QR_Type = currentIndex + 1
            Cpp_Config.Current_QR_Code = currentIndex + 1

        }
    }







}
